package com.nwpu.am.pojo.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

/**
 * UserPasswordDTO
 *
 * @author Roy
 * @version 1.0
 * {@code @date} 2024/6/7
 */

@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@ApiModel("用户修改密码数据传输对象")
public class UserPasswordDTO {
    @NotNull
    private Long userId;
    @NotEmpty
    @ApiModelProperty("旧密码")
    private String oldPassword;
    @NotEmpty
    @ApiModelProperty("新密码")
    private String newPassword;
    @NotEmpty
    @ApiModelProperty("重复密码")
    private String rePassword;
}
